package com.yuba.front.domain.bo;

import com.yuba.front.domain.CollectPosts;
import com.yuba.common.mybatis.core.domain.BaseEntity;
import com.yuba.common.core.validate.AddGroup;
import com.yuba.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 帖子收藏业务对象 collect_posts
 *
 * @author modakai
 * @date 2024-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CollectPosts.class, reverseConvertGenerate = false)
public class CollectPostsBo extends BaseEntity {

    /**
     * 收藏id
     */
    @NotNull(message = "收藏id不能为空", groups = { EditGroup.class })
    private Long collectId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 帖子id
     */
    @NotNull(message = "帖子id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long postId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
